#include <stdio.h>
#include <string.h>


void delete_space(char buf[],int *num)
{
	int i=0;
	int j=0;
	for(i=0;i<*num-1;i++)
	{
		if(buf[i] == ' ')
		{
			for(j=i;j<*num;j++)
			{
				buf[j] = buf[j+1];
			}
			
		}
		*num = *num-1;

	}
	puts(buf);
}


int main()
{
	int i =0;
	char buf[1024] ={0};
	fgets(buf,sizeof(buf)/sizeof(buf[0]),stdin);
	int len = strlen(buf)-1;
	delete_space(buf,&len);



	return 0;
}
